﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ToodledoAPI.Exceptions
{
    public class notebookException:ToodledoException
    {
        public notebookException(string JsonReturn) : base("JsonReturn") { }

        public override string Message
        {
            get 
            {
                switch (base.errorCode)
                {
                    case 3:
                        return "Only 50 notebooks can be added/edited/deleted at a time.";
                    case 4:
                        return "You didn't specify any notebooks to add/edit/delete.";
                    case 6:
                        return "The maximum number of notebooks allowed per account (10000) has been reached.";
                    case 7:
                        return "Invalid notebook ID number.";
                    case 8:
                        return "Invalid folder ID.";
                    case 12:
                        return "Nothing was changed. You'll get this error if you attempt to edit a notebook but don't pass any parameters to edit.";
                    default:
                        return UnknownMessage;
                }
            }
        }
    }
}
